//
//  locationController.h
//  cwRadio
//
//  Created by Raf Pauwels on 24/11/10.
//  Copyright 2010 __MyCompanyName__. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <CoreLocation/CoreLocation.h>

@protocol locationControllerDelegate
@required
- (void)locationUpdate:(CLLocation*)location;
- (void)locationError:(NSError*)error;
@end

@interface locationController : NSObject<CLLocationManagerDelegate>{
	CLLocationManager *locationManager;
	id delegate;
}
@property(nonatomic,retain) CLLocationManager *locationManager;
@property(nonatomic,assign) id delegate;

- (void)locationManager:(CLLocationManager*)manager
	didUpdateToLocation:(CLLocation*)newLocation
		   fromLocation:(CLLocation*)oldLocation;
- (void)locationManager:(CLLocationManager*)manager
	   didFailWithError:(NSError*)error;
@end
